package cn.imokay.implementations;
/*
* 线程的实现方式1:实现Runnable接口
* */
public class RunnableStyle implements Runnable{

    public static void main(String[] args) {
        Thread thread = new Thread(new RunnableStyle());
        thread.start();
    }

    @Override
    public void run() {
        System.out.println("用Runnable方法实现多线程");


    }
}